﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Windows.Admin.Service
{
    public interface IChatService
    {
        /// <summary>
        /// 获取跟所有人的聊天列表
        /// </summary>
        /// <returns></returns>
        Task<List<ChatLinkResponse>> GetChatLinks();
        /// <summary>
        /// 添加聊天
        /// </summary>
        /// <param name="employeeId"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task<ChatLinkResponse> AddChatLink(int employeeId);
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task SendMessageAsync(SendMessageRequest request);
        /// <summary>
        /// 获取chatId的聊天内容列表
        /// </summary>
        /// <param name="chatId"></param>
        /// <returns></returns>
        Task<List<ChatMessageResponse>> GetChatMessagesAsync(int chatId);
        /// <summary>
        /// 信息设置已读
        /// </summary>
        /// <param name="chatId"></param>
        /// <returns></returns>
        Task SetChatMessageToReadAsync(int chatId);
    }
}
